package com.tangula.web.kashine.entity;

import java.io.Serializable;

public class BaseRespEntity<T> implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -9081310859865369684L;

	private String message;
	
	private int status;
	
	private T body;
	
	private long serverTm = System.currentTimeMillis();
	
	public BaseRespEntity() {
		this.status=0;
		this.message=null;
	}
	
	public BaseRespEntity(int status, String message) {
		this.status = status;
		this.message = message;
	}

	public BaseRespEntity(int status, String message, T body) {
		this.status = status;
		this.message = message;
		this.body = body;
	}
	
	public BaseRespEntity(T body) {
		this();
		this.body = body;
	}



	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}

	public long getServerTm() {
		return serverTm;
	}

	public void setServerTm(long serverTm) {
		this.serverTm = serverTm;
	}
	
}
